package com.feib.stms.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.feib.stms.dao.DeliveryPaymentDao;
import com.feib.stms.model.DeliveryPayment;
import com.feib.stms.model.UploadFile;
import com.feib.stms.pagination.PaginatedList;

/**
 * @title (#)Delivery_PaymentService.java<br>
 * @description 交割款服務類別 <br>
 * @author Jeff Gu<br>
 * @version 1.0.0 
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @20101025 create by Jeff Gu<br>
 */
@Transactional(readOnly = true)
public interface DeliveryPaymentService extends BasePaymentFileContentService<DeliveryPaymentDao, DeliveryPayment>
{
	
	
	/**
	 * 以使用者帳號與群組代號取得待審查交割款 資料
	 * @param userId
	 * @param groupNo
	 * @return
	 */
	public PaginatedList<DeliveryPayment>  findUnCheckDeliveryPaymentByIdGroupNo(String userId, String groupNo);
	
	
	/**
	 * 以取得待審查交割款 明細資料
	 * @param deliveryPaymentPk
	 * @return deliveryPaymentPk
	 */
	public Map<String, Object> findDeliveryPaymentByPk(Long deliveryPaymentPk);
	
	
	
	/**
	 * 更新檔案審查狀態 審查次數  需達到券商流程設定門檻 才算審查成功
	 * @param checkUploadFile
	 * @return
	 */
	public void updateCheckStatusByUploadFile(List<UploadFile> checkUploadFile);
	
	//增加取消table
	

	
	
	/**
	 * 以傳入的檔案取取得交割款的明細
	 * 
	 */
	public  PaginatedList<DeliveryPayment> findDeliveryPaymentByUploadFile(UploadFile  qryUploadFile);
	


}
